/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除 POST /api/tag/deleteData */
export async function apiTagDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.ApiTagBoApiTagDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/tag/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 根据标签id和员工id去删除关联信息 POST /api/tag/employeeTag/deleteData */
export async function apiTagEmployeeTagDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeTagVoApiTagEmployeeTagDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/tag/employeeTag/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查看标签下所以员工信息 POST /api/tag/employeeTag/pageEmployee */
export async function apiTagEmployeeTagPageEmployeeUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeTagBoApiTagEmployeeTagPageEmployee;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoApiEmployee>(
    '/api/tag/employeeTag/pageEmployee',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存员工标签关联 POST /api/tag/employeeTag/saveData */
export async function apiTagEmployeeTagSaveDataUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeTagBoApiTagEmployeeTagSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/api/tag/employeeTag/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取标签详情 POST /api/tag/getData */
export async function apiTagGetDataUsingPost({
  body,
  options,
}: {
  body: API.ApiTagBoApiTagGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RApiTagVo>('/api/tag/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取所有标签详情 POST /api/tag/listData */
export async function apiTagListDataUsingPost({
  body,
  options,
}: {
  body: API.ApiTagBoApiTagListData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListApiTagVo>('/api/tag/listData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /api/tag/saveData */
export async function apiTagSaveDataUsingPost({
  body,
  options,
}: {
  body: API.ApiTagBoApiTagSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/api/tag/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /api/tag/updateData */
export async function apiTagUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.ApiTagBoApiTagUpdateData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/tag/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
